package com.sjz.han.industry.activites;

import android.content.Intent;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.sjz.han.industry.R;
import com.sjz.han.industry.base.BaseActivity;
//个人资料
public class PersonMsgActivity extends BaseActivity implements View.OnClickListener{
    private TextView pmsg_edit_tv;//编辑个人资料
    private LinearLayout pmsg_yqm_ll;//我的邀请码
    @Override
    protected int setLayoutId() {
        return R.layout.activity_personmsg;
    }

    @Override
    protected void initDatas() {

    }

    @Override
    protected void initViews() {
        reback_btn=(RelativeLayout)this.findViewById(R.id.reback_btn);
        titleTv=(TextView)this.findViewById(R.id.ctitle_tv);
        titleTv.setText("个人资料");

        pmsg_edit_tv=(TextView) this.findViewById(R.id.pmsg_edit_tv);
        pmsg_yqm_ll=(LinearLayout)this.findViewById(R.id.pmsg_yqm_ll);
    }

    @Override
    protected void setLisener() {
        reback_btn.setOnClickListener(this);
        pmsg_edit_tv.setOnClickListener(this);
        pmsg_yqm_ll.setOnClickListener(this);
    }

    @Override
    protected void onRetry() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.reback_btn:
                finish();
                break;
            case R.id.pmsg_edit_tv://编辑个人资料
                startActivity(new Intent(this,PersonMsgEditActivity.class));
                break;
            case R.id.pmsg_yqm_ll://我的邀请码
                startActivity(new Intent(this,MyYqmActivity.class));
                break;
        }
    }
}
